cmake_minimum_required(VERSION 3.10)

project(net-advanced VERSION 1.0)

add_subdirectory(lib)
add_subdirectory(mul-process)
add_subdirectory(mul-thread)
add_subdirectory(epoll-reactor)

add_executable(net-advanced main.c)

# target_link_libraries(net-advanced PUBLIC lib)

find_package(Threads)
target_link_libraries(net-advanced PUBLIC lib ${CMAKE_THREAD_LIBS_INIT})

target_include_directories(net-advanced PUBLIC
                          "${PROJECT_BINARY_DIR}"
                          "${PROJECT_SOURCE_DIR}/lib"
                          )